//
//  TestObject.m
//  BlockMemoryTest
//
//  Created by wangrui on 13-11-20.
//  Copyright (c) 2013年 PPS. All rights reserved.
//

#import "TestObject.h"

@implementation TestObject


- (void)dealloc{
    NSLog(@"TestObject dealloc");
    
#if !__has_feature(objc_arc)
    self.testBlock = nil;
    [super dealloc];
#endif
}


- (void)testComplete:(dispatch_block_t)block
{
    self.testBlock = block;
    
    self.testBlock();
}


@end
